//
//  PrayerTimesTableViewCell.m
//  PrayerTimes
//
//  Created by Igor Karpenko on 6/9/13.
//  Copyright (c) 2013 Igor Karpenko. All rights reserved.
//


#import "PrayerTimesTableViewCell.h"

#define TEXT_COLOR RGB(97.0f, 18.0f, 4.0f)
#define SHADOW_COLOR RGB(255.0f, 215.0f, 163.0f)

#define TEXT_COLOR_SELECTED RGB(255.0f, 255.0f, 255.0f)
#define SHADOW_COLOR_SELECTED RGB(0.0f, 0.0f, 0.0f)


@implementation PrayerTimesTableViewCell

#pragma mark - Memory managment

-(void) dealloc {
	[_selectionView release];
	[_titleLabel release];
	[_timeLabel release];
	[super dealloc];
}


#pragma mark - Interface methods

-(void) setSelected:(BOOL)selected {
	if (selected) {
		_selectionView.hidden = NO;
		_titleLabel.textColor = TEXT_COLOR_SELECTED;
		_titleLabel.shadowColor = SHADOW_COLOR_SELECTED;
		_timeLabel.textColor = TEXT_COLOR_SELECTED;
		_timeLabel.shadowColor = SHADOW_COLOR_SELECTED;
		return;
	}
	_selectionView.hidden = YES;
	_titleLabel.textColor = TEXT_COLOR;
	_titleLabel.shadowColor = SHADOW_COLOR;
	_timeLabel.textColor = TEXT_COLOR;
	_timeLabel.shadowColor = SHADOW_COLOR;
}

@end
